GXPostScriptResetPrinter
QuickDraw GX sends theGXPostScriptResetPrinter
message when the printer needs to be reset. You can override theGXPostScriptResetPrinter
message to alter the action taken when a printer is reset. Your override of theGXPostScriptResetPrinter
message must match the following formal declaration:
OSErr MyPostScriptResetPrinter (void);
- function result
- An error code. The value
noErr
indicates that the operation was successful.DESCRIPTION
QuickDraw GX calls theGXPostScriptResetPrinter
message when theGXPostScriptQueryPrinter
message indicates that a device requires resetting. TheGXPostScriptQueryPrinter
message forces a printer to restart itself, resetting it to a rebooted state.You can override this message to replace the code that is used to reset the printer or to perform other actions when a printer is reset. The default implementation of this message reboots the printer: it first sends the
GXPostScriptExitServer
message and then downloads PostScript code that executes thequit
operation in thesystemdict
dictionary.SPECIAL CONSIDERATIONS
You almost always forward theGXPostScriptResetPrinter
message and then add your own reset actions. If you do totally override this message, you must make sure that your override reboots the printer state.RESULT CODES
The default implementation of the
gxSegmentLoadFailedErr A required code segment could not be found,
or there was not enough memory to load it.gxPrUserAbortErr The user has canceled printing. GXPostScriptResetPrinter
message can also return the communications errors that are listed in Table 4-2 on page 4-42.SEE ALSO
TheGXPostScriptExitServer
message is described in the next section.The
GXPostScriptQueryPrinter
message is described on page 4-101.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help